/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "预算表编制",TableName = "Fk_yusuan",DetailTable =  new Type[] { typeof(Fk_ysxm)},DetailTableCnName = "预算项目明细")]
    public partial class Fk_yusuan:BaseEntity
    {
        /// <summary>
       ///id
       /// </summary>
       [Key]
       [Display(Name ="id")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int ys_id { get; set; }

       /// <summary>
       ///年度
       /// </summary>
       [Display(Name ="年度")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? gjahr { get; set; }

       /// <summary>
       ///科目
       /// </summary>
       [Display(Name ="科目")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string racct { get; set; }

       /// <summary>
       ///成本中心/研发项目
       /// </summary>
       [Display(Name ="成本中心/研发项目")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string rcntr { get; set; }

       /// <summary>
       ///1月
       /// </summary>
       [Display(Name ="1月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl01 { get; set; }

       /// <summary>
       ///2月
       /// </summary>
       [Display(Name ="2月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl02 { get; set; }

       /// <summary>
       ///3月
       /// </summary>
       [Display(Name ="3月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl03 { get; set; }

       /// <summary>
       ///4月
       /// </summary>
       [Display(Name ="4月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl04 { get; set; }

       /// <summary>
       ///5月
       /// </summary>
       [Display(Name ="5月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl05 { get; set; }

       /// <summary>
       ///6月
       /// </summary>
       [Display(Name ="6月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl06 { get; set; }

       /// <summary>
       ///7月
       /// </summary>
       [Display(Name ="7月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl07 { get; set; }

       /// <summary>
       ///8月
       /// </summary>
       [Display(Name ="8月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl08 { get; set; }

       /// <summary>
       ///9月
       /// </summary>
       [Display(Name ="9月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl09 { get; set; }

       /// <summary>
       ///10月
       /// </summary>
       [Display(Name ="10月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl10 { get; set; }

       /// <summary>
       ///11月
       /// </summary>
       [Display(Name ="11月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl11 { get; set; }

       /// <summary>
       ///12月
       /// </summary>
       [Display(Name ="12月")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? tsl12 { get; set; }

       /// <summary>
       ///预算类型1=正常，0=调整
       /// </summary>
       [Display(Name ="预算类型1=正常，0=调整")]
       [Column(TypeName="int")]
       public int? ls_type { get; set; }

       /// <summary>
       ///主控部门
       /// </summary>
       [Display(Name ="主控部门")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? zk_depid { get; set; }

       /// <summary>
       ///可用额度
       /// </summary>
       [Display(Name ="可用额度")]
       [Column(TypeName="numeric")]
       [Editable(true)]
       public decimal? kyed { get; set; }

       [Display(Name ="预算项目明细")]
       [ForeignKey("ys_id")]
       public List<Fk_ysxm> Fk_ysxm { get; set; }

    }
}